package com.googlecode.cswish.annotation;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * It means the field/method/parameter is forbidden to visit from outside
 * 
 * constant: <p>
 * @Rest(simpleServiceName = "loginUser", type = "free")
 * @Rest(simpleServiceName = "anonymity", type = "free")
 * 	 
 * @author Jerry.feng Date: 2008-9-23
 */
@Target({METHOD})
@Retention(RUNTIME)
public @interface Rest {
	/**
	 * mapping to annother service
	 * 
	 * @return
	 */
	String simpleServiceName() default "";
	
	/**
	 * Refer to com.googlecode.cswish.struts.Action
	 * 
	 * @return
	 */
	String type();
}
